package casa.depesos.app.com.http.bean;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import java.util.List;

import casa.depesos.app.com.http.BaseBean;
import casa.depesos.app.com.http.data.Relation;

public class RelationBean extends BaseBean {

    @SerializedName("dataRecord")
    @Expose
    public List<Relation> list;

    @Override
    public boolean isValid() {
        return super.isValid() && list != null && list.size() == 2;
    }
}
